package com.leihao.product.domian.listRequest;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 条件查询对应属性/参数实体
 */
public class ProductStatsListRequest {


    /**
     * 商品类型
     */
    @NotNull(message = "商品分类主键编号不能为空")
    private Integer productAttrId;


    /**
     * 属性类型 0:属性 1:参数
     */
    @NotNull(message = "商品属性类型不能为空")
    private Integer type;
    /**
     * 页码
     */
    private Integer pageNum;

    /**
     * 显示条数
     */
    private Integer pageSize;

    public Integer getProductAttrId() {
        return productAttrId;
    }

    public void setProductAttrId(Integer productAttrId) {
        this.productAttrId = productAttrId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public ProductStatsListRequest() {
    }

    public ProductStatsListRequest(Integer productAttrId, Integer type, Integer pageNum, Integer pageSize) {
        this.productAttrId = productAttrId;
        this.type = type;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
